package com.mahjong.server.component.logic.manager;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;

import com.mahjong.server.component.logic.util.LogicConstant;

/**
 * @user:   Administrator
 * @author： 游刚
 * @version：1.0
 * @created：Apr 9, 2013
 */

public class LogicManager {

	private Logger log=Logger.getLogger(LogicManager.class);
	@SuppressWarnings("unused")
  private int roomId;
	
	/**
	 * 牌局初始化操作
	 * @param roomId
	 */
	public void init(int roomId) {
		this.roomId = roomId;
		Map<String,Object> map = new HashMap<String,Object>();
		map.put(LogicConstant.Left_MAHJONG_2,LogicConstant.allPai2);
		map.put("startTime", new Date());
		//map.put...牌局中各玩家信息也要加载进来
		CacheManager.setCache(roomId+"",map);
		log.info("init.");
	}
}
